package com.lonefennec.chameleon;

public class Point implements Comparable<Point>
{
	public int x;
	public int y;
	
	public Point()
	{
		x = 0;
		y = 0;
	}
	
	public Point(int x, int y)
	{
		this.x = x;
		this.y = y;
	}
	
	public Point(Point other)
	{
		x = other.getX();
		y = other.getY();
	}
	
	public int getX()
	{
		return x;
	}
	
	public int getY()
	{
		return y;
	}
	
	@Override
	public int compareTo(Point o)
	{
		if (this.x == o.x && this.y == o.y)
			return 0;
		else
			return -1;
	}
	
	@Override
	public String toString()
	{
		return "[" + Integer.valueOf(x).toString() + ", " +Integer.valueOf(y).toString() + "]";
	}
}
